#define _CRT_SECURE_NO_WARNINGS 1

#include "Date.h"

int main()
{
	Date d1(2003,10,22);
	Date d2(2003,10,22);
	cout << (d1 == d2) << endl;

	Date d3(2003,10,21);
	cout << (d1 != d3) << endl;

	cout << (d1 < d3) << endl;

	cout << (d1 > d3) << endl;

	Date d4(2002,10,22);
	cout << (d1 <= d4) << endl;

	Date d5(2002, 10, 22);
	cout << (d1 >= d5) << endl;

	Date d6 = d5 + 1000;
	d6.Print();

	//d5 += 1000;
	//d5.Print();

	cout << endl;

	cout << d6 - d5 << endl;

	cout << endl;

	Date d7 = d5 - 1000;
	d7.Print();

	cout << endl;

	d5 -= 1000;
	d5.Print();

	cout << endl;

	++d5;
	d5.Print();

	--d5;
	d5.Print();

	Date d8 = d5++;
	d8.Print();
	d5.Print();


	Date d9 = d5--;
	d9.Print();
	d5.Print();

	d5++;
	cout << d5 << endl;


	//cin >> d5;
	//cout << d5 << endl;

	return 0;
}

